package com.geek.entity.game;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @Desc TODO
 * @Author yeban
 * @Date 2025/11/20
 */
public class Goods {
    private Integer id;              // 物品ID（主键）
    private String name;             // 物品名称
    private Integer price;           // 购买价格
    private String description;      // 详细描述（含HTML）
    private Integer sell;            // 出售价格
    private Integer total;           // 总价
    private String tag;              // 标签
    private String keywords;         // 搜索关键词
    private LocalDateTime createdAt; // 创建时间
    private LocalDateTime updatedAt; // 更新时间
    private Integer isDeleted;       // 逻辑删除 0 未删 1 已删

    // 一对多 good -> heros
    private List<Heros> herosList;

    public Goods() {
    }

    public Goods(Integer id, String name, Integer price, String description, Integer sell, Integer total, String tag, String keywords, LocalDateTime createdAt, LocalDateTime updatedAt, Integer isDeleted) {
        this.id = id;
        this.name = name;
        this.price = price;
        this.description = description;
        this.sell = sell;
        this.total = total;
        this.tag = tag;
        this.keywords = keywords;
        this.createdAt = createdAt;
        this.updatedAt = updatedAt;
        this.isDeleted = isDeleted;
    }

    public Goods(Integer id, String name, Integer price, String description, Integer sell, Integer total, String tag, String keywords, LocalDateTime createdAt, LocalDateTime updatedAt, Integer isDeleted, List<Heros> herosList) {
        this.id = id;
        this.name = name;
        this.price = price;
        this.description = description;
        this.sell = sell;
        this.total = total;
        this.tag = tag;
        this.keywords = keywords;
        this.createdAt = createdAt;
        this.updatedAt = updatedAt;
        this.isDeleted = isDeleted;
        this.herosList = herosList;
    }

    /**
     * 获取
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return price
     */
    public Integer getPrice() {
        return price;
    }

    /**
     * 设置
     * @param price
     */
    public void setPrice(Integer price) {
        this.price = price;
    }

    /**
     * 获取
     * @return description
     */
    public String getDescription() {
        return description;
    }

    /**
     * 设置
     * @param description
     */
    public void setDescription(String description) {
        this.description = description;
    }

    /**
     * 获取
     * @return sell
     */
    public Integer getSell() {
        return sell;
    }

    /**
     * 设置
     * @param sell
     */
    public void setSell(Integer sell) {
        this.sell = sell;
    }

    /**
     * 获取
     * @return total
     */
    public Integer getTotal() {
        return total;
    }

    /**
     * 设置
     * @param total
     */
    public void setTotal(Integer total) {
        this.total = total;
    }

    /**
     * 获取
     * @return tag
     */
    public String getTag() {
        return tag;
    }

    /**
     * 设置
     * @param tag
     */
    public void setTag(String tag) {
        this.tag = tag;
    }

    /**
     * 获取
     * @return keywords
     */
    public String getKeywords() {
        return keywords;
    }

    /**
     * 设置
     * @param keywords
     */
    public void setKeywords(String keywords) {
        this.keywords = keywords;
    }

    /**
     * 获取
     * @return createdAt
     */
    public LocalDateTime getCreatedAt() {
        return createdAt;
    }

    /**
     * 设置
     * @param createdAt
     */
    public void setCreatedAt(LocalDateTime createdAt) {
        this.createdAt = createdAt;
    }

    /**
     * 获取
     * @return updatedAt
     */
    public LocalDateTime getUpdatedAt() {
        return updatedAt;
    }

    /**
     * 设置
     * @param updatedAt
     */
    public void setUpdatedAt(LocalDateTime updatedAt) {
        this.updatedAt = updatedAt;
    }

    /**
     * 获取
     * @return isDeleted
     */
    public Integer getIsDeleted() {
        return isDeleted;
    }

    /**
     * 设置
     * @param isDeleted
     */
    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    /**
     * 获取
     * @return herosList
     */
    public List<Heros> getHerosList() {
        return herosList;
    }

    /**
     * 设置
     * @param herosList
     */
    public void setHerosList(List<Heros> herosList) {
        this.herosList = herosList;
    }

    public String toString() {
        return "Goods{id = " + id + ", name = " + name + ", price = " + price + ", description = " + description + ", sell = " + sell + ", total = " + total + ", tag = " + tag + ", keywords = " + keywords + ", createdAt = " + createdAt + ", updatedAt = " + updatedAt + ", isDeleted = " + isDeleted + ", herosList = " + herosList + "}";
    }
}
